<?php

namespace maotool\src\test\controller;

use maotool\core\annotation\old\Autowired;
use maotool\core\annotation\old\RequestMapping;
use maotool\core\annotation\old\RestController;
use maotool\core\Config;
use maotool\core\response\R;

/**
 * @RestController("/member")
 */
class MemberController
{

    /**
     * @Autowired()
     * @var Config
     */
    protected $config;

    /**
     * @RequestMapping("/index")
     * @return R
     */
    public function index()
    {
        return R::ok();
    }

    public function init()
    {
        var_dump($this->config->get("framework"));
    }

}